package com.atguigu.mybatis.mappers;

import com.atguigu.mybatis.pojo.User;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-08-16
 * Time: 11:05
 */
public interface SQLMapper {
    /**
     *  批量删除数据
     */
     int deleteUers(@Param("ids") String ids);

    /**
     * 模糊查询
     */
     @MapKey("id")
     Map<String , Object> likeSelectUser( String name);

    /**
     * 获取自增的主键
     */
     int insertUsers(User user);

}
